package jjn.acwing;

import java.util.Scanner;

/**
 * @author Jiang Jining
 * @since 2023-07-22 22:16
 */
public class Acwing606 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("MEDIA = %.5f", (a * 3.5 + b * 7.5) / 11);
    }
}
